package com.dongjiantong.user.service;

import com.dongjiantong.mybatis.BaseService;
import com.dongjiantong.user.model.OrganizationUser;

import java.util.List;

/**
 * @author cao
 * @create 2017-12-01 下午1:25
 **/

public interface OrganizationUserService  extends BaseService<OrganizationUser> {


    /**
     * 查询某用户所在单位
     * @param userId
     * @return
     */
    OrganizationUser queryOrganizationByUserId(long userId);

    /**
     * 查询某机构下的所有用户
     * @param organizationId
     * @return
     */
    List<OrganizationUser> getListByOrgId(Long organizationId);

    List<OrganizationUser> selectByUserId(Long userId);

    List<Long> userIdList(List<Long> orgIdList);
}
